﻿<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false" CodeFile="CQuery_ConnStringaction.aspx.cs"
    Inherits="CQuery_ConnStringaction" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>CQuery_ConnString</title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
    <ext:Panel ID="Panel1" runat="server" Layout="Fit" ShowBorder="False" ShowHeader="false"
        BodyPadding="5px" EnableBackgroundColor="true">
        <Toolbars>
            <ext:Toolbar ID="Toolbar1" runat="server">
                <Items>
                    <ext:Button ID="btnClose" EnablePostBack="false" Text="关闭" runat="server" Icon="SystemClose">
                    </ext:Button>
                     <ext:Button ID="btnTestDb"   Text="测试连接" runat="server" Icon="DatabaseLightning" OnClick="btnTestDb_Click">
                    </ext:Button>
                    <ext:Button ID="btnSaveContinue" Text="保存" runat="server" Icon="SystemSaveNew" OnClick="btnSaveContinue_Click"
                        ValidateForms="SimpleForm1">
                    </ext:Button>
                    <ext:ToolbarFill ID="ToolbarFill1" runat="server">
                    </ext:ToolbarFill>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Items>
            <ext:Panel ID="Panel2" Layout="Fit" runat="server" ShowBorder="false" ShowHeader="false">
                <Items>
                    <ext:SimpleForm ID="SimpleForm1" runat="server" EnableBackgroundColor="true" ShowBorder="False"
                        ShowHeader="False" LabelAlign="Right">
                        <Items>
                            <ext:HiddenField runat="server" Required="true" ShowRedStar="true" Label="id" ID="txbid">
                            </ext:HiddenField>
                            <ext:TextBox runat="server" Required="true" ShowRedStar="true" Label="名称" ID="txbconnName">
                            </ext:TextBox>
                            <ext:TextArea runat="server" Required="true" ShowRedStar="true" Label="连接字符串" ID="txbconnString"
                                AutoGrowHeight="true">
                            </ext:TextArea>
                            <ext:DropDownList runat="server" ID="ddltype" Label="数据源类型">
                                <ext:ListItem Text="SqlServer" Value="SqlServer" />
                                <ext:ListItem Text="Oracle" Value="Oracle" />
                             <%--   <ext:ListItem Text="SQLite" Value="SQLite" />--%>
                            </ext:DropDownList>
                        </Items>
                    </ext:SimpleForm>
                </Items>
            </ext:Panel>
        </Items>
    </ext:Panel>
    </form>
</body>
</html>
